home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Developer / StopWatch / Source / Expense.h < prev    next >
Encoding:
Text File  |  1994-02-06  |  653 b   |  35 lines

  1. /*
  2.  * Manage the information regarding a single Expense record for
  3.  * a single client.
  4.  *
  5.  * For legal stuff see the file COPYRIGHT
  6.  */
  7. #import "ColCellData.h"
  8.  
  9. @interface Expense : Object <ColCellData>
  10. {
  11.   char    *dateString;
  12.   char    *description;
  13.   float    amount;
  14. }
  15.  
  16. - free;
  17. - init:(const char *)date
  18.        description:(const char *)desc
  19.        amount:(const float)amt;
  20.  
  21. - read: (NXTypedStream *) stream;
  22. - write:(NXTypedStream *) stream;
  23.  
  24. - setAmount:(float)value;
  25. - setDateString:(const char *)str;
  26. - setDescription:(const char *)desc;
  27.  
  28. - (float)amount;
  29. - (const char *)dateString;     /* mm/dd/yy */
  30. - (const char *)description;
  31.  
  32. - (int)dateValue;
  33.  
  34. @end
  35.